//
//  Singer.m
//  DolphinMusic
//
//  Created by dllo on 15/3/24.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "Singer.h"

@implementation Singer
- (void)dealloc
{
    [_songs_total release];
    [_albums_total release];
    [_avatar_big release];
    [_country release];
    [_ting_uid release];
    [_artist_id release];
    [_name release];
    [_avatar_middle release];
    [super dealloc];
}

- (instancetype)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"artistname"]) {
        self.name = value;
    }
    if ([key isEqualToString:@"artistid"]) {
        self.artist_id = value;
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}



@end
